/***
 * handles permissions
 *
 *
 **/

// int -> string -> bool
hasPerm( $uid, $perm ) {
  // find rootmost perm
}

// int -> string -> bool
setPerm( $uid, $perm ) {
  // find all subling perms and delete
  // insert new perm
}

